﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%@ Import Namespace="Rose.Helper" %>
<%@ Import Namespace="Rose.Models" %>

<% FeelingModel item = Model;
  CheckHelpModel checkhelp = new CheckHelpModel();
  string selfId = checkhelp.CheckCurrentUserId();
  bool isself = selfId == item.UserId ? true : false;
     %>
<%string itname = "你";
  if (!isself) { itname = item.UserName; }
     %>
<div class="trend" data="<%=item.Id %>">
<div class="imagepart">
<img class="headimage" src="<%=ReturnImageHelpModel.ReturnImage(item.Feel) %>" />
</div>

<div class="trendcontent">
<p class="headline"><span><%=itname %></span>在
<%=item.CreateTime %>时心情
<span><%=item.Feel%></span></p>
<p class="contentline"><%=item.Description%></p>

<p class="commentline">

<a data="<%=item.Id %>" class="showcomments" onclick="GetFeelingComment(this);">回复（<%=item.CommentCount %>）</a>

</p>  
    
<p>
 <textarea rows="3" cols="30" class="commentarea" style="display:none"></textarea>
<a class="publish" style="display:none">发布</a>
</p>
</div>

</div>  
